package com.yimils.core.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("goods")
public class GoodsEntity {
    @TableId(type = IdType.AUTO)
    private Long Id;
    private String audit;
    private String putawayState;
    private String putaway;
    private Integer rank;
    private Long categoryId;
    private String goodsCode;
    private String goodsName;
    private BigDecimal costPrice;
    private BigDecimal retailPrice;
    private BigDecimal wholesalePrice;
    private BigDecimal wholesaleSpec;
    private String retailSalesUnit;
    private Integer upWarning;
    private Integer downWarning;
    private Long brandId;
    private String origin;
    private String expirationDate;
    private String retailWeight;
    private String wholesaleWeight;
    private String length;
    private String wide;
    private String high;
    private String wholesaleLength;
    private String wholesaleWide;
    private String wholesaleHigh;
    private String remarks;
    private Long createUserId;
    private Boolean state;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
